package com.xiaoluo.common.utils;


import com.xiaoluo.service.JobService;
import com.xiaoluo.service.ServerService;
import com.xl.property.PropertyEtcdConfigurer;
import org.springframework.web.context.WebApplicationContext;

/**
 * Created by Administrator on 2015/9/10.
 */
public class ApplicationContextUtils {

    public static JobService jobService;

    public static PropertyEtcdConfigurer propertyConfigurer;

    private static WebApplicationContext springContext;

    public static ServerService serverService;





    public static void setSpringContext(WebApplicationContext applicationContext) {
        springContext = applicationContext;
    }

    public static Object getBean(String beanName){
        return springContext.getBean(beanName);
    }




}
